package tech.heptagram.staff.api;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * 系统存活检查点
 *
 * @author wang.yuchuan
 * @date 2018/3/23
 */
@Api("健康检查点, 成功返回success")
@RestController
public class HealthController {

    @ApiOperation("如果应用健康, 返回success字符串")
    @GetMapping("/health")
    @ResponseBody
    public String health() {
        return "success";
    }

}
